package nc.ui.ic.periodstart;
import java.awt.Container;
import javax.swing.table.TableCellEditor;
import nc.ui.ca.pub.HgQueryDIG;
import nc.ui.pub.beans.UIPanel;
import nc.vo.scm.pu.PuPubVO;
public class ClientQueryDLG extends HgQueryDIG{
	private static final long serialVersionUID = -283453924880968920L;
	public ClientQueryDLG(Container parent, UIPanel normalPnl, String pk_corp,
			String moduleCode, String operator, String busiType,
			String depfield, String storfield) {
		super(parent, normalPnl, pk_corp, moduleCode, operator, busiType, depfield,
				storfield);
	}
	protected void afterEdit(TableCellEditor editor, int row, int col) {
		super.afterEdit(editor, row, col);
		String fieldcode = getFieldCodeByRow(row);
		if(PuPubVO.getString_TrimZeroLenAsNull(fieldcode)==null)
			return;
		if(fieldcode.equalsIgnoreCase(dep_fieldname)){
			setValue(null,null,1,stor_fieldname);
		}	
	}
}
